<template>
  <!--评分汇总 -->
  <a-card :bordered="false">
    <!-- table区域-begin -->
    <div>
      评分汇总
      <a-table
        ref="table"
        size="middle"
        :scroll="{ x: true }"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="false"
        :loading="loading"
        class="j-table-force-nowrap"
      >
        <template slot="htmlSlot" slot-scope="text">
          <div v-html="text"></div>
        </template>
      </a-table>
    </div>
  </a-card>
</template>

<script>
import '@/assets/less/TableExpand.less' 
import { getAction, postAction } from '@api/manage'
export default {
  name: 'PfSum',
  components: {},
  props: { 
    bidSectionId: {},
    businessId:{}
  },
  data() {
    return {
      description: '评分汇总',
      // 表头
      columns: [
        {
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          width: 60,
          align: 'center',
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          },
        },
        {
          title: '审查项',
          align: 'center',
          dataIndex: 'reviewItem',
        },
        {
          title: '审查标准',
          align: 'center',
          dataIndex: 'reviewStandard',
        },
      ],
      url: { 
        // 符合性审查项评分记录,
        getConformanceReviewRecord:'/exPingbiao/exPingbiaoExpertRecord/getConformanceReviewRecord',
      },
      dataSource: [],
    }
  },
  watch: {
    businessId: {
      immediate: true,
      handler(val) {
        
      },
    },
  },
  created() {
    
  },
  computed: {},
  methods: { 
    loadData(businessId) { 
      var that = this
      let params = {
        conformanceReviewId: businessId,
        expertIds:''
      } 
      getAction(this.url.getConformanceReviewRecord, params)
        .then((res) => {
          if (res.success) {
            that.dataSource =  res.result
          }
        })
        .finally(() => {})
    },
  },
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>